package com.cloning;

public class Employee  implements Cloneable{
	int eid;
	String name;
	public Employee(int eid, String name) {
			this.eid = eid;
		this.name = name;
		System.out.println("Employee(int eid, String name) Cons---");
	}
	@Override
	public String toString() {
		
		return eid+"\t"+name;
	}
	void showClone()throws CloneNotSupportedException{
	Employee em = (Employee) clone();
		System.out.println("\nthis: \t\n"+this);
		System.out.println("\n Cloned obj:\t\n"+em);
		System.out.println(this==em);
	}


}
